/*--------------------
cardPanel
--------------------*/

.pm_form
.cardPanel {

    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    background: $primary;
    color: $white;
    text-shadow: 0px 2px 1px rgba(0,0,0,0.2);
    box-shadow: 0px 1px 1px rgba(0,0,0,0.2);
    cursor: pointer;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url(assets('img/login.jpg')) no-repeat center;
      background-size: cover;
      opacity: .4;
    }

    &:hover::before {
        opacity: .6
    }

  .cardPanel-issuer {
    position: absolute;
    top: 0px;
    right: 20px;
    width: 80px;
    img[class*="cardPanel-issuer"] {
      width: 100%;
      height: auto;
      display: none;
    }

  }

  // Card issuer style (bg, logo)
  &.issuer-visa {
      background: rebeccapurple;

      img.cardPanel-issuer-visa{
          display: block
      }
  }

  &.issuer-amex {
      background: blue;

      img.cardPanel-issuer-amex{
          display: block
      }
  }

  &.issuer-mastercard {
      background: black;

      img.cardPanel-issuer-mastercard{
          display: block
      }
  }

  .cardPanel-number {
    position: absolute;
    top: 70px;
    left: 19px;
    font-size: 3.2rem;
  }

  .cardPanel-label {
    font-size: .6rem;
    letter-spacing: .5px;
    text-shadow: none;
    text-transform: uppercase;
    font-weight: normal;
    opacity: 0.7;
    display: block;
    margin-bottom: 3px;
    height: 18px;
  }


  .cardPanel-country,
  .cardPanel-holder,
  .cardPanel-expires
   {
    position: absolute;
    top: 15px;
    left: 19px;
    text-transform: capitalize;
  }

  .cardPanel-country {
      font-size: .7rem;
  }

  .cardPanel-holder,
  .cardPanel-expires {
      top:145px;
      font-size: 1rem;
  }

  .cardPanel-expires {
    text-align: right;
    left: auto;
    right: 20px;
  }

}
